package edu.sctu.zhengsenwen.month201506.day20150623.operator;

/**
 * 条件操作符
 * Created by user15 on 2015/6/23.
 */
public class ConditionOperatorDemo {

    public static void main(String[] args) {

        System.out.println("true && true = "+String.valueOf(true && true));
        System.out.println("true || false = "+String.valueOf(true && false));
        System.out.println("!true = "+String.valueOf(!true));
        System.out.println("true & true = "+String.valueOf(true & true));
        System.out.println("true | false = "+String.valueOf(true | false));
        System.out.println("true ^ true = "+String.valueOf(true ^ true));
        System.out.println("true ^ false = "+String.valueOf(true ^ false));
        System.out.println("true ^ false ^true = "+String.valueOf(true ^ false ^true));
    }
}
